package cn.dg.manager.user.address.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.dg.manager.common.entity.PageEntity;
import cn.dg.manager.user.address.dao.UserAddressDao;
import cn.dg.manager.user.address.entity.UserAddressInfoVO;
import cn.dg.manager.user.address.service.AddressService;

@Service("addressService")
public class AddressServiceImpl  implements AddressService{

	@Autowired
	UserAddressDao userAddressDao;
	
	/**
	 * 
	 */
	public PageEntity<UserAddressInfoVO> getUserAddressListPage(Map<String, Object> params) {
		PageEntity<UserAddressInfoVO> list = userAddressDao.findUserAddressListPage(params);
        return list;
	}

	/**
	 * 
	 */
	public long insertUserAddressInfo(UserAddressInfoVO bean) {
		return userAddressDao.insertUserAddressInfo(bean);
	}

	/**
	 * 
	 */
	public long updateUserAddressInfo(UserAddressInfoVO bean) {
		return userAddressDao.updateUserAddressInfo(bean);
	}

	/**
	 * 
	 */
	public long deleteUserAddress(List<String> asList) {
		return userAddressDao.deleteUserAddress(asList);
	}
}
